﻿@{
    var siteHelper = CoreServiceProvider.LocateService<INbSiteContextProvider>();
    var siteStatus = siteHelper.GetCurrentSiteHealthStatus();
    string showMessage = "";
    if (siteStatus != null)
    {
        TimeSpan timeSpan = (DateTime.Now - siteStatus.ApplicationStartAt);
        string outputStr = string.Format("{0}天{1}小时{2}分", timeSpan.Days, timeSpan.Hours,timeSpan.Minutes);//1天3小时
        showMessage = string.Format("网站启动: {0} , 历时:{1}", siteStatus.ApplicationStartAt.ToString("yyyy-MM-dd"), outputStr);
    }
}

@if (!string.IsNullOrWhiteSpace(showMessage))
{
    <span class="smaller-80">@showMessage</span>
    <span>
        <i class="ace-icon glyphicon glyphicon-signal"></i>
    </span>
}
